import exceptions
class AnalysisError(exceptions.Exception):
	def __init__(self, msg, position=-1):
		self.msg = msg
		self.position = position
	
	def getMessage(self):
		return self.msg

	def getPosition(self):
		return self.position
